Yes I have got some information regarding this type of algebraic operation for check_snmp so that output can be multiplied or divided . But fail to get output, need to google more .
Rgds, Sujeet Gaurav Ghimire wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sujeet Mulmi wrote: > >> Dear Gaurav, >> >> Thanks for the reply. I was wondering if recoding of >> check_snmp.c gets effect for other services even disk checking for >> other servers. >> >> > Yes it will for obvious reasons...you can just copy check_snmp.c to some > other name and edit it for your changes...and use the output plugin for > your specific use. For you will be doing the matematics with the snmpget > output the plugin receives...there is no way you can use the same > plugin for other regular monitored normal services. > > >> Gaurav Ghimire wrote: >> >> >>>>> Well, for you are trying to modify the value nagios gets after the >>>>> snmpget and not the nagios output [OK, CRITICAL, etc etc] . I doubt there >>>>> wouldn't be an actual way of doing it after nagios had already executed >>>>> the plugin. Rather you could go recode check_snmp.c to suit your needs >>>>> cutting out all the other crap. >>>>> >>>>> Moreover it would be more better if you could add one more parameter that >>>>> takes the multiplication unit to your modded check_snmp.c >>>>> >>>>> >> I don't know if it helps though. That was what I understood. >> >> >> >>>>> Sujeet Mulmi wrote: >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I have used nagios to get some information of disk usage of my >>>>>> NAS . However I could get the correct parameter with the correct OID, >>>>>> but I felt to scaled it . I was wondering how can I do multiplication of >>>>>> the output value with some units to get the exact result. Any highlight >>>>>> will be appreciated. >>>>>> >>>>>> Thanks in advance. >>>>>> >>>>>> Rgds, >>>>>> Sujeet >>>>>> >>>>>> >>>>> Regards, >>>>> >>>>> > > Regards. > - -- > Gaurav Ghimire > System Administrator > Subisu Cablenet (P.) Ltd. > 148 Thirbum Sadak > Baluwatar, Kathmandu > Nepal > > http://www.subisu.net.np > > First and Only True Cable Internet Service Provider in Nepal > > (An ISO 9001:2000 Certified Company) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkpAr6QACgkQnfv7imVnL2tGGQCdEZ21XeDZUn53hjOVeOuxLi9P > cssAoLb1tAFvJ9F0BiZTOn9uVS+uOJ7I > =0bBH > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null